package com.DesignPatten.AbstractFactory;

import com.DesignPatten.AbstractFactory.abstract1.Phone;
import com.DesignPatten.AbstractFactory.abstract1.Router;

/**
 * @ClassName XiaomiFactory
 * @Date 2021/4/27 21:01
 * @Author 李明杰
 * @Description TODO
 */

public class XiaomiFactory implements IProductFactory {
    @Override
    public Phone phone() {
        System.out.println("生产小米手机");
        return new XiaomiPhone();
    }

    @Override
    public Router router() {
        System.out.println("生产小米路由器");
        return new XiaomiRouter();
    }
}
